<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="cn.itcast.domain.User" %>
<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查询</title>
</head>
<body>
<%
    List list=new ArrayList();
    list.add(new User("zhbng",26,new Date()));
    list.add(new User("zhcng",27,new Date()));
    request.setAttribute("list",list);
%>
<table border="2" width="500" align="center">
    <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>年龄</th>
            <th>生日</th>
    </tr>

        <c:forEach items="${list}" var="user" varStatus="s" >
            <tr>
                <td>${s.count}</td>
                <td>${user.name}</td>
                <td>${user.age}</td>
                <td>${user.birStr}</td>
            </tr>
        </c:forEach>

</table>

</body>
</html>
